/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
Ext.ns("CRM.SPComp");


CRM.SPComp.MyPanel = Ext.extend(Ext.Panel, {
    
    title   : 'SHEKHAR FIRST EXTENED PANEL',
    border  : true,
    
    initComponent : function(){
        Ext.apply(this,{
            bbar: [
                    {
                        text    : 'Foo',
                        itemId  : 'fooButton',
                        handler : this.myButtonClick,
                        //scope   : this,
                        autoWidth   : true
                    }
                ]
        });
        CRM.SPComp.MyPanel.superclass.initComponent.apply(this, arguments);
    },
    myButtonClick : function(){
        alert("Hello");
    }
});

Ext.reg('mypanel', CRM.SPComp.MyPanel);



